

#ifndef _DRIVER_LED_CTRL_H
#define _DRIVER_LED_CTRL_H

#include "stdint.h"

typedef enum 
{
	LED_OFF         = 0, 
	POWER_ON        = 1, 
	NETWORK_OFFLINE = 2, 
	NETWORK_ONLINE  = 3, 
	BATTERY_LOW     = 4, 
	CHARGING        = 5, 
	CHARGE_COMPLETE = 6,
	FAULT           = 7,
	
	LED_DEBUG       =255
	
}ENUM_LED_STATUS;


typedef struct
{
	uint8_t  status;
	uint8_t  status_old;
	uint16_t ctrlprd;
	int16_t  time_red_on;
	int16_t  time_red_off;
	uint16_t red_blankcnt;
	int16_t  time_white_on;
	int16_t  time_white_off;
	uint16_t white_blankcnt;
	uint16_t number_cyc;
	int16_t  cyc_cnt;
	int16_t  blankcnt;

}STR_LED_CTRL;


extern void led_status_ctrl(uint8_t status);

#endif



